<template>
	<view class="Card">
		<view class="membershipCard" :style="{backgroundImage: member1}">
			<view class="header">
				<image :src="$IMG_URL('/static/user/logo1.png')" mode="aspectFill" class="logo"></image>
				<view class="center">
					<image :src="$IMG_URL('/static/user/memberSize.png')" mode="aspectFilla" class="memberSize"></image>
				</view>
				<u-icon name="arrow-right" color="#43332b" size="14"></u-icon>
			</view>
			<view class="bottom">
				<view class="size1">
					{{query.title}}
				</view>
				<view class="size2">
					{{query.days_str}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			query: {
				type: null,
				default: null,
				required: true
			},
		},
		data() {
			return {
				member1: 'url(https://ugeego.youjixiaoyang.com/static/member/qbj.png)',
				member2: 'url(https://ugeego.youjixiaoyang.com/static/member/bj.png)'
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.Card {
		width: 750rpx;
		padding: 0 24rpx;
		margin-top: 20rpx;
		margin-bottom: 32rpx;
	}

	.membershipCard {
		width: 100%;
		height: 234rpx;
		background-repeat: no-repeat no-repeat;
		background-size: cover;
		display: flex;
		flex-direction: column;

		.header {
			width: 100%;
			height: 90rpx;
			padding: 0 18rpx 0 36rpx;
			display: flex;
			flex-direction: row;
			align-items: center;

			.logo {
				width: 48rpx;
				height: 48rpx;
				margin-right: 12rpx;
			}

			.center {
				display: flex;
				flex-direction: row;
				align-items: center;
				flex: 1;

				.memberSize {
					width: 302rpx;
					height: 46rpx;
					opacity: 0.6;
				}
			}

		}

		.bottom {
			width: 100%;
			height: 117rpx;
			display: flex;
			flex-direction: column;
			padding: 34rpx 0 0 34rpx;

			.size1 {
				opacity: 0.6;
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC-Bold;
				font-weight: 700;
				text-align: left;
				color: #000000;
			}

			.size2 {
				opacity: 0.4;
				font-size: 24rpx;
				font-family: PingFang SC, PingFang SC-Medium;
				font-weight: 500;
				text-align: left;
				color: #000000;
			}
		}
	}
</style>